package com.easyapi.dao.mapper.api;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easyapi.dao.entity.api.ApiCenterInterfaceInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApiCenterInterfaceInfoMapper extends BaseMapper<ApiCenterInterfaceInfo> {

    List<ApiCenterInterfaceInfo> listByApiName(@Param("apiName")String apiName,@Param("project")Long projectId);

    Page<ApiCenterInterfaceInfo> getAllInterfaceInfo(@Param("page")IPage page);

    ApiCenterInterfaceInfo getByApiPath(@Param("path") String path);
}